package cn.starlightsoftware.sherly.controller.admin.user.vo;

import cn.hutool.core.date.DatePattern;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import cn.starlightsoftware.sherly.enums.UsableEnum;
import cn.starlightsoftware.sherly.model.PageQuery;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 谷子毅
 */
@Data
public class UserPageReqVO extends PageQuery {

    @Schema(description = "昵称", example = "Gucci")
    private String nickname;

    @Schema(description = "用户账号", example = "gzy520")
    private String username;

    @Schema(description = "手机号", example = "18888888888")
    private String phone;

    @Schema(description = "邮箱", example = "abc@qq.com")
    private String email;

    @Schema(description = "可用性", example = "ENABLE")
    private UsableEnum usable;

    @Schema(description = "创建时间", example = "1997-08-25 00:00:00, 1997-08-25 23:59:59")
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date[] createTime;

}
